public class StrDome {

    public static void main(String[] args) {
        String a = "sdasd.xmm";


        System.out.println(a.substring(0,a.lastIndexOf(".")));

    }


}
